package com.wise.summer.v1.cms.content.pagedecorate;

import com.wise.entities.content.Decorate;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.NotNull;
import com.wise.framework.summer.BasicSummer;

import static com.wise.model.content.ContentErrMsgs.Err_000500000005;

@Publish
@ApiInfo("新建微页面")
public class AddPageDecorate extends BasicSummer<Decorate> {
    /**
     * 别名
     */
    private String alias;
    /**
     * content
     * 这个为草稿，由后台负责编辑，不会在前台显示，相当于一个草稿的作用
     * 前台点击保存，则保存为草稿
     */
    private String content;
    /**
     * state 0 or 1
     * 0 为 content
     * 1 为 publicContent
     */
    @NotNull(msg = Err_000500000005)
    private Integer state = 0;
    /**
     * title
     */
    private String title;
    /**
     * img
     */
    private String img;

    /**
     * module
     */
    private String module;

    @ApiInfo("seo_title")
    private String seoTitle;

    @ApiInfo("关键词描述")
    private String seoDescribe;

    @ApiInfo("网页标题")
    private String pageTitle;

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getSeoTitle() {
        return seoTitle;
    }

    public void setSeoTitle(String seoTitle) {
        this.seoTitle = seoTitle;
    }

    public String getSeoDescribe() {
        return seoDescribe;
    }

    public void setSeoDescribe(String seoDescribe) {
        this.seoDescribe = seoDescribe;
    }

    public String getPageTitle() {
        return pageTitle;
    }

    public void setPageTitle(String pageTitle) {
        this.pageTitle = pageTitle;
    }
}
